package com.ruoyi.mall.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 mall_order
 *
 * @author ruoyi
 * @date 2024-01-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MallOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long userId;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * 订单商品总价
     */
    @Excel(name = "订单商品总价")
    private BigDecimal orderGoodsPrice;

    /**
     * 订单运费
     */
    @Excel(name = "订单运费")
    private BigDecimal orderFreight;

    /**
     * 订单总价
     */
    @Excel(name = "订单总价")
    private BigDecimal orderPrice;

    /**
     * 实付金额
     */
    @Excel(name = "实付金额")
    private BigDecimal payPrice;

    /**
     * 支付方式
     */
    @Excel(name = "支付方式")
    private String payMethod;

    /**
     * 支付详情，json格式
     */
    @Excel(name = "支付详情，json格式")
    private String payDetail;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 收货人姓名
     */
    @Excel(name = "收货人姓名")
    private String receiverName;

    /**
     * 收货人手机
     */
    @Excel(name = "收货人手机")
    private String receiverMobile;

    /**
     * 省CODE
     */
    @Excel(name = "省CODE")
    private String provCode;

    /**
     * 省名称
     */
    @Excel(name = "省名称")
    private String provName;

    /**
     * 城市CODE
     */
    @Excel(name = "城市CODE")
    private String cityCode;

    /**
     * 城市名称
     */
    @Excel(name = "城市名称")
    private String cityName;

    /**
     * 区县CODE
     */
    @Excel(name = "区县CODE")
    private String areaCode;

    /**
     * 区县名称
     */
    @Excel(name = "区县名称")
    private String areaName;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    private String address;

    /**
     * 快递单号
     */
    @Excel(name = "快递单号")
    private String logisticsNo;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 发货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliverTime;

    /**
     * 收货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receivingTime;

    /**
     * 收货方式（1-自动确认，2-用户确认）
     */
    @Excel(name = "收货方式", readConverterExp = "1=-自动确认，2-用户确认")
    private Integer receivingMethod;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;
}
